/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_sales_promotion_detail.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_SALES_PROMOTION_DETAIL
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_sales_promotion_detail.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "app97_global.h" 
#include "table_ppm.h"

CTable_PPM_SALES_PROMOTION_DETAIL::CTable_PPM_SALES_PROMOTION_DETAIL( )
 :NPCRecordSet( )
{
  setTableName( "PPM_SALES_PROMOTION_DETAIL" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  MODE_RELA.setField( "MODE_RELA", DATA_CHAR, 20, 0 );
  makeTableItem( MODE_RELA );
  MODE_CD.setField( "MODE_CD", DATA_CHAR, 20, 0 );
  makeTableItem( MODE_CD );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}


CTable_PPM_SALES_PROMOTION_DETAIL::CTable_PPM_SALES_PROMOTION_DETAIL( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_SALES_PROMOTION_DETAIL" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  MODE_RELA.setField( "MODE_RELA", DATA_CHAR, 20, 0 );
  makeTableItem( MODE_RELA );
  MODE_CD.setField( "MODE_CD", DATA_CHAR, 20, 0 );
  makeTableItem( MODE_CD );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}

CTable_PPM_SALES_PROMOTION_DETAIL::~CTable_PPM_SALES_PROMOTION_DETAIL( )
{
    close();
}

